<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Cwp\V20180228\Models;
use TencentCloud\Common\AbstractModel;

/**
 * Malicious file details
 *
 * @method string getVirusName() Obtain Virus name
 * @method void setVirusName(string $VirusName) Set Virus name
 * @method integer getFileSize() Obtain File size
 * @method void setFileSize(integer $FileSize) Set File size
 * @method string getMD5() Obtain File MD5
 * @method void setMD5(string $MD5) Set File MD5
 * @method string getFilePath() Obtain File address
 * @method void setFilePath(string $FilePath) Set File address
 * @method string getFileCreateTime() Obtain First running time
 * @method void setFileCreateTime(string $FileCreateTime) Set First running time
 * @method string getFileModifierTime() Obtain Last running time
 * @method void setFileModifierTime(string $FileModifierTime) Set Last running time
 * @method string getHarmDescribe() Obtain Severity description
 * @method void setHarmDescribe(string $HarmDescribe) Set Severity description
 * @method string getSuggestScheme() Obtain Recommended solution
 * @method void setSuggestScheme(string $SuggestScheme) Set Recommended solution
 * @method string getServersName() Obtain Server name
 * @method void setServersName(string $ServersName) Set Server name
 * @method string getHostIp() Obtain Server IP
 * @method void setHostIp(string $HostIp) Set Server IP
 * @method string getProcessName() Obtain Process name
 * @method void setProcessName(string $ProcessName) Set Process name
 * @method string getProcessID() Obtain Process ID
 * @method void setProcessID(string $ProcessID) Set Process ID
 * @method array getTags() Obtain Tag Features
 * @method void setTags(array $Tags) Set Tag Features
 * @method string getBreadth() Obtain Impact breadth // Not provided currently
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setBreadth(string $Breadth) Set Impact breadth // Not provided currently
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getHeat() Obtain Search popularity // Not provided currently
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setHeat(string $Heat) Set Search popularity // Not provided currently
Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getId() Obtain Unique ID
 * @method void setId(integer $Id) Set Unique ID
 * @method string getFileName() Obtain File name
 * @method void setFileName(string $FileName) Set File name
 * @method string getCreateTime() Obtain First detection time
 * @method void setCreateTime(string $CreateTime) Set First detection time
 * @method string getLatestScanTime() Obtain Last scan time
 * @method void setLatestScanTime(string $LatestScanTime) Set Last scan time
 * @method string getReference() Obtain Reference link
 * @method void setReference(string $Reference) Set Reference link
 * @method string getMachineWanIp() Obtain Public IP address
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setMachineWanIp(string $MachineWanIp) Set Public IP address
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getPsTree() Obtain Process tree in JSON format. pid: process ID; exe: file path; account: groups and users to which the process belongs; cmdline: executed commands; ssh_service: SSH service IP; ssh_source: log-in source
.Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setPsTree(string $PsTree) Set Process tree in JSON format. pid: process ID; exe: file path; account: groups and users to which the process belongs; cmdline: executed commands; ssh_service: SSH service IP; ssh_source: log-in source
.Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getMachineStatus() Obtain Online status of a host: OFFLINE and ONLINE
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setMachineStatus(string $MachineStatus) Set Online status of a host: OFFLINE and ONLINE
Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getStatus() Obtain Status. 4: pending; 5: trusted; 6: isolated.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setStatus(integer $Status) Set Status. 4: pending; 5: trusted; 6: isolated.
Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getLevel() Obtain Risk level. 0: prompt; 1: low; 2: medium; 3: high; 4: critical.Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setLevel(integer $Level) Set Risk level. 0: prompt; 1: low; 2: medium; 3: high; 4: critical.Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getCheckPlatform() Obtain Trojan detection platforms, separated with commas. 1: cloud security engine; 2: TAV; 3: BinaryAI; 4: abnormal behavior; 5: threat intelligence.Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setCheckPlatform(string $CheckPlatform) Set Trojan detection platforms, separated with commas. 1: cloud security engine; 2: TAV; 3: BinaryAI; 4: abnormal behavior; 5: threat intelligence.Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getUuid() Obtain Host UUID
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setUuid(string $Uuid) Set Host UUID
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getModifyTime() Obtain Last modification time
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setModifyTime(string $ModifyTime) Set Last modification time
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getStrFileAccessTime() Obtain Last access time
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setStrFileAccessTime(string $StrFileAccessTime) Set Last access time
Note: This field may return null, indicating that no valid values can be obtained.
 * @method MachineExtraInfo getMachineExtraInfo() Obtain Additional information
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setMachineExtraInfo(MachineExtraInfo $MachineExtraInfo) Set Additional information
Note: This field may return null, indicating that no valid values can be obtained.
 */
class MalwareInfo extends AbstractModel
{
    /**
     * @var string Virus name
     */
    public $VirusName;

    /**
     * @var integer File size
     */
    public $FileSize;

    /**
     * @var string File MD5
     */
    public $MD5;

    /**
     * @var string File address
     */
    public $FilePath;

    /**
     * @var string First running time
     */
    public $FileCreateTime;

    /**
     * @var string Last running time
     */
    public $FileModifierTime;

    /**
     * @var string Severity description
     */
    public $HarmDescribe;

    /**
     * @var string Recommended solution
     */
    public $SuggestScheme;

    /**
     * @var string Server name
     */
    public $ServersName;

    /**
     * @var string Server IP
     */
    public $HostIp;

    /**
     * @var string Process name
     */
    public $ProcessName;

    /**
     * @var string Process ID
     */
    public $ProcessID;

    /**
     * @var array Tag Features
     */
    public $Tags;

    /**
     * @var string Impact breadth // Not provided currently
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Breadth;

    /**
     * @var string Search popularity // Not provided currently
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Heat;

    /**
     * @var integer Unique ID
     */
    public $Id;

    /**
     * @var string File name
     */
    public $FileName;

    /**
     * @var string First detection time
     */
    public $CreateTime;

    /**
     * @var string Last scan time
     */
    public $LatestScanTime;

    /**
     * @var string Reference link
     */
    public $Reference;

    /**
     * @var string Public IP address
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $MachineWanIp;

    /**
     * @var string Process tree in JSON format. pid: process ID; exe: file path; account: groups and users to which the process belongs; cmdline: executed commands; ssh_service: SSH service IP; ssh_source: log-in source
.Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $PsTree;

    /**
     * @var string Online status of a host: OFFLINE and ONLINE
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $MachineStatus;

    /**
     * @var integer Status. 4: pending; 5: trusted; 6: isolated.
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Status;

    /**
     * @var integer Risk level. 0: prompt; 1: low; 2: medium; 3: high; 4: critical.Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Level;

    /**
     * @var string Trojan detection platforms, separated with commas. 1: cloud security engine; 2: TAV; 3: BinaryAI; 4: abnormal behavior; 5: threat intelligence.Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $CheckPlatform;

    /**
     * @var string Host UUID
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $Uuid;

    /**
     * @var string Last modification time
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $ModifyTime;

    /**
     * @var string Last access time
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $StrFileAccessTime;

    /**
     * @var MachineExtraInfo Additional information
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $MachineExtraInfo;

    /**
     * @param string $VirusName Virus name
     * @param integer $FileSize File size
     * @param string $MD5 File MD5
     * @param string $FilePath File address
     * @param string $FileCreateTime First running time
     * @param string $FileModifierTime Last running time
     * @param string $HarmDescribe Severity description
     * @param string $SuggestScheme Recommended solution
     * @param string $ServersName Server name
     * @param string $HostIp Server IP
     * @param string $ProcessName Process name
     * @param string $ProcessID Process ID
     * @param array $Tags Tag Features
     * @param string $Breadth Impact breadth // Not provided currently
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $Heat Search popularity // Not provided currently
Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $Id Unique ID
     * @param string $FileName File name
     * @param string $CreateTime First detection time
     * @param string $LatestScanTime Last scan time
     * @param string $Reference Reference link
     * @param string $MachineWanIp Public IP address
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $PsTree Process tree in JSON format. pid: process ID; exe: file path; account: groups and users to which the process belongs; cmdline: executed commands; ssh_service: SSH service IP; ssh_source: log-in source
.Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $MachineStatus Online status of a host: OFFLINE and ONLINE
Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $Status Status. 4: pending; 5: trusted; 6: isolated.
Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $Level Risk level. 0: prompt; 1: low; 2: medium; 3: high; 4: critical.Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $CheckPlatform Trojan detection platforms, separated with commas. 1: cloud security engine; 2: TAV; 3: BinaryAI; 4: abnormal behavior; 5: threat intelligence.Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $Uuid Host UUID
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $ModifyTime Last modification time
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $StrFileAccessTime Last access time
Note: This field may return null, indicating that no valid values can be obtained.
     * @param MachineExtraInfo $MachineExtraInfo Additional information
Note: This field may return null, indicating that no valid values can be obtained.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("VirusName",$param) and $param["VirusName"] !== null) {
            $this->VirusName = $param["VirusName"];
        }

        if (array_key_exists("FileSize",$param) and $param["FileSize"] !== null) {
            $this->FileSize = $param["FileSize"];
        }

        if (array_key_exists("MD5",$param) and $param["MD5"] !== null) {
            $this->MD5 = $param["MD5"];
        }

        if (array_key_exists("FilePath",$param) and $param["FilePath"] !== null) {
            $this->FilePath = $param["FilePath"];
        }

        if (array_key_exists("FileCreateTime",$param) and $param["FileCreateTime"] !== null) {
            $this->FileCreateTime = $param["FileCreateTime"];
        }

        if (array_key_exists("FileModifierTime",$param) and $param["FileModifierTime"] !== null) {
            $this->FileModifierTime = $param["FileModifierTime"];
        }

        if (array_key_exists("HarmDescribe",$param) and $param["HarmDescribe"] !== null) {
            $this->HarmDescribe = $param["HarmDescribe"];
        }

        if (array_key_exists("SuggestScheme",$param) and $param["SuggestScheme"] !== null) {
            $this->SuggestScheme = $param["SuggestScheme"];
        }

        if (array_key_exists("ServersName",$param) and $param["ServersName"] !== null) {
            $this->ServersName = $param["ServersName"];
        }

        if (array_key_exists("HostIp",$param) and $param["HostIp"] !== null) {
            $this->HostIp = $param["HostIp"];
        }

        if (array_key_exists("ProcessName",$param) and $param["ProcessName"] !== null) {
            $this->ProcessName = $param["ProcessName"];
        }

        if (array_key_exists("ProcessID",$param) and $param["ProcessID"] !== null) {
            $this->ProcessID = $param["ProcessID"];
        }

        if (array_key_exists("Tags",$param) and $param["Tags"] !== null) {
            $this->Tags = $param["Tags"];
        }

        if (array_key_exists("Breadth",$param) and $param["Breadth"] !== null) {
            $this->Breadth = $param["Breadth"];
        }

        if (array_key_exists("Heat",$param) and $param["Heat"] !== null) {
            $this->Heat = $param["Heat"];
        }

        if (array_key_exists("Id",$param) and $param["Id"] !== null) {
            $this->Id = $param["Id"];
        }

        if (array_key_exists("FileName",$param) and $param["FileName"] !== null) {
            $this->FileName = $param["FileName"];
        }

        if (array_key_exists("CreateTime",$param) and $param["CreateTime"] !== null) {
            $this->CreateTime = $param["CreateTime"];
        }

        if (array_key_exists("LatestScanTime",$param) and $param["LatestScanTime"] !== null) {
            $this->LatestScanTime = $param["LatestScanTime"];
        }

        if (array_key_exists("Reference",$param) and $param["Reference"] !== null) {
            $this->Reference = $param["Reference"];
        }

        if (array_key_exists("MachineWanIp",$param) and $param["MachineWanIp"] !== null) {
            $this->MachineWanIp = $param["MachineWanIp"];
        }

        if (array_key_exists("PsTree",$param) and $param["PsTree"] !== null) {
            $this->PsTree = $param["PsTree"];
        }

        if (array_key_exists("MachineStatus",$param) and $param["MachineStatus"] !== null) {
            $this->MachineStatus = $param["MachineStatus"];
        }

        if (array_key_exists("Status",$param) and $param["Status"] !== null) {
            $this->Status = $param["Status"];
        }

        if (array_key_exists("Level",$param) and $param["Level"] !== null) {
            $this->Level = $param["Level"];
        }

        if (array_key_exists("CheckPlatform",$param) and $param["CheckPlatform"] !== null) {
            $this->CheckPlatform = $param["CheckPlatform"];
        }

        if (array_key_exists("Uuid",$param) and $param["Uuid"] !== null) {
            $this->Uuid = $param["Uuid"];
        }

        if (array_key_exists("ModifyTime",$param) and $param["ModifyTime"] !== null) {
            $this->ModifyTime = $param["ModifyTime"];
        }

        if (array_key_exists("StrFileAccessTime",$param) and $param["StrFileAccessTime"] !== null) {
            $this->StrFileAccessTime = $param["StrFileAccessTime"];
        }

        if (array_key_exists("MachineExtraInfo",$param) and $param["MachineExtraInfo"] !== null) {
            $this->MachineExtraInfo = new MachineExtraInfo();
            $this->MachineExtraInfo->deserialize($param["MachineExtraInfo"]);
        }
    }
}
